Optimal. Leaf size=108 \[ \frac{(a+b x)^n (c+d x)^{-n} \left (\frac{b (c+d x)}{b c-a d}\right )^n \, _2F_1\left (n,n;n+1;-\frac{d (a+b x)}{b c-a d}\right )}{n}-\frac{(a+b x)^n (c+d x)^{-n} \, _2F_1\left (1,n;n+1;\frac{c (a+b x)}{a (c+d x)}\right )}{n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0492434, antiderivative size = 108, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {105, 70, 69, 131} \[ \frac{(a+b x)^n (c+d x)^{-n} \left (\frac{b (c+d x)}{b c-a d}\right )^n \, _2F_1\left (n,n;n+1;-\frac{d (a+b x)}{b c-a d}\right )}{n}-\frac{(a+b x)^n (c+d x)^{-n} \, _2F_1\left (1,n;n+1;\frac{c (a+b x)}{a (c+d x)}\right )}{n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 105
Rule 70
Rule 69
Rule 131
Rubi steps
\begin{align*} \int \frac{(a+b x)^n (c+d x)^{-n}}{x} \, dx &=a \int \frac{(a+b x)^{-1+n} (c+d x)^{-n}}{x} \, dx+b \int (a+b x)^{-1+n} (c+d x)^{-n} \, dx\\ &=-\frac{(a+b x)^n (c+d x)^{-n} \, _2F_1\left (1,n;1+n;\frac{c (a+b x)}{a (c+d x)}\right )}{n}+\left (b (c+d x)^{-n} \left (\frac{b (c+d x)}{b c-a d}\right )^n\right ) \int (a+b x)^{-1+n} \left (\frac{b c}{b c-a d}+\frac{b d x}{b c-a d}\right )^{-n} \, dx\\ &=-\frac{(a+b x)^n (c+d x)^{-n} \, _2F_1\left (1,n;1+n;\frac{c (a+b x)}{a (c+d x)}\right )}{n}+\frac{(a+b x)^n (c+d x)^{-n} \left (\frac{b (c+d x)}{b c-a d}\right )^n \, _2F_1\left (n,n;1+n;-\frac{d (a+b x)}{b c-a d}\right )}{n}\\ \end{align*}
Mathematica [A] time = 0.0295555, size = 89, normalized size = 0.82 \[ \frac{(a+b x)^n (c+d x)^{-n} \left (\left (\frac{b (c+d x)}{b c-a d}\right )^n \, _2F_1\left (n,n;n+1;\frac{d (a+b x)}{a d-b c}\right )-\, _2F_1\left (1,n;n+1;\frac{c (a+b x)}{a (c+d x)}\right )\right )}{n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.052, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( bx+a \right ) ^{n}}{x \left ( dx+c \right ) ^{n}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b x + a\right )}^{n}}{{\left (d x + c\right )}^{n} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (b x + a\right )}^{n}}{{\left (d x + c\right )}^{n} x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b x + a\right )}^{n}}{{\left (d x + c\right )}^{n} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]